﻿using System;
using System.Linq;
using System.Linq.Expressions;
using NC.Infrastructure.DomainDto.Identity;
using domainEntity=NC.Infrastructure.Domain.News.Apply;

namespace NC.Service.Apply
{
    public interface IApplyService : IService
    {
        domainEntity Get(int id);

        IQueryable<domainEntity> GetAll();

        IQueryable<domainEntity> Get(Expression<Func<domainEntity, bool>> filter);

        void Insert(domainEntity entity);

        void Update(domainEntity entity);

        void Delete(domainEntity entity);


        //获取ListDto
        IQueryable<ApplyPersonDto> GetApplyPersons();

        IQueryable<ApplyPersonDto> GetApplyPersons(
            Expression<Func<Infrastructure.Domain.News.Apply, bool>> filterExpression);


    }
}
